﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using NUnit.Framework.Constraints;
using TamGiac;
namespace TestTamGiac
{
    [TestFixture] // 
    class TestXacDinhTamGiac
    {
        private LopTamGiac tamGiac;
        [SetUp] // 
        public void LopTamGiac()
        {
            tamGiac = new LopTamGiac(0, 0, 1, 0, 0, 1);

        }
        [Test]
        public void XacDinhLoaiTamGiac01()
        {
            tamGiac = new LopTamGiac(0, 0, 0, 0, 0, 0);
            Assert.AreEqual(tamGiac.XacDinhLoaiTamGiac(), 0);
        }
        [Test]
        public void XacDinhLoaiTamGiac02()
        {
            tamGiac = new LopTamGiac(0, 1, 2, 0, 3, 4);
            Assert.AreEqual(tamGiac.XacDinhLoaiTamGiac(), 1);
        }
        [Test]
        public void XacDinhLoaiTamGiac03()
        {
            tamGiac = new LopTamGiac(0, 0, 1, 4, 2, 0);
            Assert.AreEqual(tamGiac.XacDinhLoaiTamGiac(), 2);
        }
        //deu
        [Test]
        public void XacDinhLoaiTamGiac04()
        {
            tamGiac = new LopTamGiac(0, 0, 1, 1.7320508f, 2, 0);
            Assert.AreEqual(tamGiac.XacDinhLoaiTamGiac(), 3);
        }

        [Test]
        public void XacDinhLoaiTamGiac05()
        {
            tamGiac = new LopTamGiac(0, 0, 3, 1, 3, 0);
            Assert.AreEqual(tamGiac.XacDinhLoaiTamGiac(), 4);
        }

 
        [Test]
        public void XacDinhLoaiTamGiac06()
        {
            tamGiac = new LopTamGiac(0, 0, 1, 1, 2, 0);
            Assert.AreEqual(tamGiac.XacDinhLoaiTamGiac(), 5);
        }


        [Test]
        public void XacDinhLoaiTamGiac07()
        {
            tamGiac = new LopTamGiac(0, 0, 1, 0, 1, 1);
            Assert.AreEqual(tamGiac.XacDinhLoaiTamGiac(), 5);
        }

    }

}
